﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace MuHelper.Tests
{
    [TestClass]
    public class NumberWithMeasurePlus
    {
        [TestMethod]
        public void BaseMeasurePlusBaseMeasure()
        {
            var measure1 = new Measure("m");
            var measure2 = new Measure("g");

            var value1 = new NumberWithMeasure(1, measure1);
            var value2 = new NumberWithMeasure(1, measure2);

            var result1 = value1 + value2;
            Assert.AreEqual(NumberWithMeasure.NaN, result1);

            var result2 = value1 + value1;
            Assert.AreEqual(measure1, result2.Measure);
        }

        [TestMethod]
        public void BaseMeasurePlusComplexMeasure()
        {
            
        }
    }
}
